package com.sciencep.pro.core.dao;

import com.sciencep.pro.core.domain.dto.project.BurndownChartTO;
import com.sciencep.pro.core.domain.entity.ProPlanHours;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sciencep.pro.core.domain.entity.UserWorkdailyLog;

import java.time.LocalDate;
import java.util.List;

/**
 * @author Sciencep
 */
public interface ProPlanHoursMapper extends BaseMapper<ProPlanHours> {


    /**
     * 获取计划完成总人天
     * @param proId
     * @return
     */
    List<BurndownChartTO> getTotalWorkDay(String proId);

    /**
     * 获取绩效完成总人天
     * @param proNo
     * @return
     */
    List<BurndownChartTO> getPerformanceDaily(String proNo);

    /**
     * 获取实际完成总人天(项目区间)
     * @param proNo
     * @return
     */
    List<UserWorkdailyLog> getPutinDaily(String proNo, LocalDate startDate, LocalDate endDate);
}
